//
//  Session.h
//  TrainTree
//
//  Created by wanghui on 2017/8/30.
//  Copyright © 2017年 YouYeShu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Session : NSObject
/**用户ID*/
@property(nonatomic,copy)NSString *userId;
/**用户名*/
@property(nonatomic,copy)NSString *username;
/**是否可发布课程*/
@property(nonatomic, assign)BOOL isPublishLesson;
/**部门id*/
@property(nonatomic,copy)NSString *branchId;
/**部门名字*/
@property(nonatomic,copy)NSString *branchName;
/**组织等级*/
@property(nonatomic,copy)NSString *level;
/**组织等级名字*/
@property(nonatomic,copy)NSString *levelName;
/**token*/
@property(nonatomic,copy)NSString *token;

+ (Session *)shareSession;

/**是否已登录*/
+ (BOOL)isLogin;
/**退出登录*/
+ (void)exit;
/**存用户信息*/
+ (void)session:(NSDictionary *)session;

@end
